﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entidades;
using FluentNHibernate.Mapping;

namespace Persistencia.Mappings.Extensions
{
    public static class ExtensionMap
    {
        public static void DefaultMap<T>(this ClassMap<T> concreteEntityMap) where T : Entidad 
        {
            concreteEntityMap.Id(x => x.Id).Column("Id").GeneratedBy.Identity();
            concreteEntityMap.Map(x => x.Activo).Column("Activo");
            //concreteEntityMap.Map(x => x.Nombre).Column("Nombre");
        }
    }
}
